Add checkpointPolicy
field to ChainFollower
#3372
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue number
ADP-1497
Overview
In this pull request, we add a
checkpointPolicy
field to theChainFollower
type.This policy enables any chain synchronizer which does not retrieve full blocks — such as
lightSync
— to target those block heights at which the follower makes checkpoints.ℹ️ This pull request only changes the
ChainFollower
type — incorporating this new information into thelightSync
algorithm is left for a future pull request.Details
defaultPolicy
toCardano.Wallet.Checkpoints
in order to reduce cognitive burden in the places where aChainFollower
is constructed.Comments
lightSync
algorithm before merging Simplify checkpoint creation and pruning, take 2 #3369 — otherwise, no good checkpoints will be created in light-mode. That said, light-mode may be so fast that it can work without checkpoints.